package duotai;

public class Dog extends Pet{
    @Override
    public  void  eat (Pet pet ) {
        //代表狗
       if(pet.getType()==1){
         System.out.println("请开始投喂");
         pet.getHealth(3);
           if(pet.getType()>=100){
               System.out.println("健康值已达100，不需要继续投喂");

           }
       }
    }
}
